
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvCarColor
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	21/3/2549 15:43:26	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvCarColor
#Region "Internal member variables"
    Private _ColorId As Int16
    Private _ColorName As String
    Private _ColorStatus As Byte
#End Region

    Public Sub New()
        _ColorId = Nothing
        _ColorName = Nothing
        _ColorStatus = Nothing
    End Sub

    Public Sub New(ByVal ColorId As Int16, _
       ByVal ColorName As String, _
       ByVal ColorStatus As Byte)
        _ColorId = ColorId
        _ColorName = ColorName
        _ColorStatus = ColorStatus
    End Sub

#Region "Property"

    Public Property ColorId() As Int16
        Get
            Return _ColorId
        End Get
        Set(ByVal value As Int16)
            _ColorId = value
        End Set
    End Property


    Public Property ColorName() As String
        Get
            Return _ColorName
        End Get
        Set(ByVal value As String)
            _ColorName = value
        End Set
    End Property


    Public Property ColorStatus() As Byte
        Get
            Return _ColorStatus
        End Get
        Set(ByVal value As Byte)
            _ColorStatus = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvCarColors
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	21/3/2549 15:43:26	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvCarColors
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvCarColor
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvCarColor)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvCarColor)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvCarColor)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class
